#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
	int N;
	while (cin>>N) {
		if (N & (N - 1))
			printf("NO\n");
		else 
			printf("YES\n");
	}
	return 0;
}